package com.helloworld.chat.dao;

import com.helloworld.chat.entity.User;

import java.util.List;

/**
 * Created by xdzy on 2017/6/28.
 */
public interface UserDao {
    void insert(User user);
    User getUser(int id);
    User getUser(String username);
    List<User> getUserList();
    User findByUserName(String username);
    void register(User user);
    void update(User user);
    User findById(int uid);
}
